package com.jic.product.mapper;

import com.jic.product.entity.ProductPropertyValueRelation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品属性值
 *
 * @author :
 * @version : v1.0.0
 * @email :
 * @since : 2020-01-10 07:03:01
 */
@Mapper
public interface ProductPropertyValueRelationMapper {

    long insert(ProductPropertyValueRelation productPropertyValueRelation);

    long delete(Long id);

    long update(ProductPropertyValueRelation productPropertyValueRelation);

    ProductPropertyValueRelation queryByPrimaryKey(Long id);

    List<ProductPropertyValueRelation> query(ProductPropertyValueRelation productPropertyValueRelation);

    List<ProductPropertyValueRelation> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, ProductPropertyValueRelation productPropertyValueRelation);

    long queryPageCount(ProductPropertyValueRelation productPropertyValueRelation);
}